package com.BigDate.server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author stx
 * @since 2021-12-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_project")
@ApiModel(value="Project对象", description="")
public class Project implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "实验表")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "实验标题")
    private String title;

    @ApiModelProperty(value = "实验描述")
    private String expAbs;

    @ApiModelProperty(value = "实验内容")
    private String content;

    @ApiModelProperty(value = "ipynb文件地址")
    private String pynbPath;

    @ApiModelProperty(value = "实验难度类型")
    private String expType;

    @ApiModelProperty(value = "实验领域")
    private String expArea;

    @ApiModelProperty(value = "实验方法")
    private String expMethod;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date expTime;

    @ApiModelProperty(value = "实验数据集")
    private String expDataset;

    @ApiModelProperty(value = "收藏数量")
    private Integer collectionQuantity;

    @ApiModelProperty(value = "用户id(fk)")
    private Integer userid;

    @ApiModelProperty(value = "用户名称(fk)")
    @TableField(exist = false)
    private String  nickname;

    @ApiModelProperty(value = "发布实验的用户")
    @TableField(exist = false)
    private User user;
}
